Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Chk fra #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Chk fra #13

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 9, 2018

rpi_y_w

Francesco Verde added 2 commits April 6, 2018 15:25
@ghost ghost self-assigned this Apr 9, 2018
@ghost ghost requested a review from taliaga April 9, 2018 13:10
@taliaga
Copy link

taliaga commented Apr 9, 2018

Please, update the description to tell reviewers what this is all about :)


#In case of error, comment this line
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not leaving just the more "fixed" version git+https://github.com/martel-innovate/wifi.git@rpi-fix ?
there should be only one line per each module in the requirements.txt

os.close(self.db_fd)
os.unlink(self.db_name)

def test_0a_disable(self):
time.sleep(20)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you have to do the same at the beginning of all your tests... who do you call?

ifaces = core.interfaces()
self.assertIsInstance(ifaces, list)
self.assertNotIn(self.iface, ifaces)
self.assertIn(self.iface, ifaces)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have an explanation for this maybe? a comment or something would help. Same for the change in test below.

self.assertTrue(len(psk) > 0)
self.assertTrue(len(ssid) > 0)
channel, psk, ssid = options.get('wireless-channel'), options.get('wpa-psk'), options.get('wpa-ssid')
if channel is not None:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some things to comment here:

  • What is it exactly that you want to test? E.g, if channel is not defined, should the test fail or not?
  • Tests should not be printing much stuff to output, but rather passing quietly or failing with error messages.
  • Avoid re-doing the same questions.

@@ -36,16 +36,19 @@ def setUp(self):
self.gps_inf = -1000.0

def tearDown(self):
time.sleep(20)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@@ -0,0 +1,12 @@
language: python
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, from this point onwards, looks like you committed the wifi repo within eWine-connectivity-manager repo. Revert this please.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant